from colorama import Fore, Back, Style


def Log(opt: bool, color: str, msg: str) -> None:
    if opt == True:
        if color == "r":
            print(Fore.RED + msg)
            print(Style.RESET_ALL)
        elif color == "wh":
            print(Fore.WHITE + msg)
            print(Style.RESET_ALL)
        elif color == "b":
            print(Fore.BLUE + msg)
            print(Style.RESET_ALL)
        elif color == "gn":
            print(Fore.GREEN + msg)
            print(Style.RESET_ALL)
        elif color == "yw":
            print(Fore.YELLOW + msg)
            print(Style.RESET_ALL)
    else:
        if color == "yw":
            print(Back.YELLOW + msg)
            print(Style.RESET_ALL)

INFO = Fore.GREEN + "[INFO]" + Fore.RESET
CMD = Fore.GREEN + "[CMD]" + Fore.RESET
WARNNING = Fore.RED + "[WARNNING]" + Fore.RESET
ERROR = Fore.RED + "[ERROR]" + Fore.RESET